// ignore: file_names
import 'package:flutter/material.dart';

//输入state 会提示自动生成xxxWidget
class MyApp1 extends StatelessWidget {
  const MyApp1({super.key});
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      //设置标题栏
      appBar: AppBar(
        //设置标题文字和属性
        title: Text(
          'Flutter初体验',
          style: TextStyle(color: Colors.white, fontSize: 20),
        ),
        //设置标题栏背景颜色
        backgroundColor: Colors.pink,
        //设置标题居中
        centerTitle: true,
      ),
      body: const Center(child: Text('Heelo World')),
    );
  }
}
